package com.hjxy.codetools.interfa;

import com.hjxy.codetools.model.ArtitleModel;

import java.util.List;
import java.util.Map;

public interface ArtitleServiceInterface {
    List<ArtitleModel> getArtitlesInfo(Map whMap) throws Exception;
    List<ArtitleModel> getAllArtitlesInfo() throws Exception;
    List<ArtitleModel> TypeArtitles(Map whMap) throws Exception;
    List<ArtitleModel> searchArticles(String searchkey) throws Exception;
    List<ArtitleModel> ArtitlesInfo(Map whMap) throws Exception;

    int getTotalNum(Map map) throws Exception;

    int insertArtitle(ArtitleModel artitleModel) throws Exception;

    int updateArtitle(ArtitleModel artitleModel) throws Exception;

    int deleteArtitle(int[] params) throws Exception;

    ArtitleModel getArtitleByCode(String fcode) throws Exception;
    List<ArtitleModel> getArtitlePreNext(int fcode) throws Exception;
    ArtitleModel getArtitleById(int id) throws Exception;

}
